<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

use Think\Model;

class HousePaySubmit
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "房租缴费订单提交ok";
    public $group = '物业缴费';
    public $desc = "";

    public $input = [
        'id' => 'required;int;label=租赁合同id;',
        'pay_type' => 'required;int;label=支付方式;comment=1微信支付 2支付宝支付',
        'buy_num' => 'required;int;label=购买月数;',
    ];

    public $output = [
        [
            'appId' => 'label=appId;',
            'nonceStr' => 'label=随机字符串;',
            'prepayId' => 'label=prepayId;',
            'package' => 'label=package;',
            'signType' => 'label=加密类型;',
            'timeStamp' => 'label=时间戳;',
            'sign' => 'label=签名;',
        ]
    ];

    public function run($param, $uid, $login_info)
    {


        $result = OE('order')->houseOrderSubmit($param, $uid, $login_info);;

        return $result;
    }
}
